#include <bits/stdc++.h>

using namespace std;

int main(){
	srand(time(0));
	freopen("C:\\Users\\29842\\Desktop\\lqq5.in","w",stdout);
    int m=rand()%100;
    cout << m <<endl;
    while(m--){
    	int n =rand()%100+1;
    	cout <<  n<<endl;
		for(int i = 0; i < n; i++){
			long long x=rand()%(long long)1e3*100000;
			cout<<x<<" ";
		}
		puts("");
	}
}
